﻿
@{
    ViewBag.Title = "Auhtor Home";
}

<h2 style="width:80%;margin-left:100px;margin-bottom:20px">Welcome to AECT-LKAOE 2015.</h2>

<div id="setup">
    <div>@Html.ActionLink("My Profile", "EditAuthorInfo", "Account") Please complete your personal information before starting a proposal and registration.</div>
    <div>@Html.ActionLink("My Proposals", "Proposals", "Author")</div>
    <div>@Html.ActionLink("Symposium Registration","Register","Registrations") <span style="color:red" id="iewarning"></span></div>
</div>

<script type="text/javascript">
    $("#iewarning").hide();

        function getInternetExplorerVersion()
            // Returns the version of Internet Explorer or a -1
            // (indicating the use of another browser).
        {
            var ver = -1; // Return value assumes failure.
                           var ua = window.navigator.userAgent;
                var msie = ua.indexOf('MSIE ');
                var trident = ua.indexOf('Trident/');

                if (msie > 0) {
                    // IE 10 or older => return version number
                    ver=parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
                }

                if (trident > 0) {
                    // IE 11 (or newer) => return version number
                    var rv = ua.indexOf('rv:');
                    ver= parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
                }
                return ver;
            
        }
        function checkVersion() {
            var msg = "You're not using Internet Explorer.";
            var ver = getInternetExplorerVersion();
            var expectedver = 10.0;


            if (ver>-1) {
                msg = "You're using a recent copy of Internet Explorer."
                //if(ver<9)
                //{
                //    $("#iewarning").html("Please use Internet Explorer to continue the registration.")
                //    $("#iewarning").show();
                //}
            }
            else {
                //alert("Your browser is not compatible，please use Internet Explorer 8.0 or higher version");
                $("#iewarning").html("Please use Internet Explorer to continue the registration.")
                $("#iewarning").show();
            }

        }
        checkVersion();

</script>
